<style type="text/css">
  .btn_rd{ color: #FFF; background: #CDA60E; text-align: center; text-decoration: none; padding: 4px 6px 4px 6px; margin-right: 4px;}
</style>
<table class="search">
	<tbody>
		<tr>
			<td>个人事务：</td>
			<td>
      			<a href="javascript:;" onclick="change('dealStatus','');" class="<if condition="$dealStatus eq '' ">current</if>" >全部</a>
      			<a href="javascript:;" onclick="change('dealStatus','1');" class="<if condition="$dealStatus eq '1' ">current</if>" >我未处理</a>
	  			<a href="javascript:;" onclick="change('dealStatus','2');" class="<if condition="$dealStatus eq '2' ">current</if>" >我已处理</a>
				<if condition="$canSeeGroup eq true">
					<a href="javascript:;" onclick="change('dealStatus','3');" class="<if condition="$dealStatus eq '3' ">current</if>" >部门未处理</a>
	  				<a href="javascript:;" onclick="change('dealStatus','4');" class="<if condition="$dealStatus eq '4' ">current</if>" >部门已处理</a>
				</if>
			</td>
		</tr>
		<tr>
			<td>退款类型：</td>
			<td>
      			<a href="javascript:;" onclick="change('refundType','');" class="<if condition="$refundType eq '' ">current</if>" >全部</a>
      			<a href="javascript:;" onclick="change('refundType','1');" class="<if condition="$refundType eq '1' ">current</if>" >财务退款</a>
	  			<a href="javascript:;" onclick="change('refundType','2');" class="<if condition="$refundType eq '2' ">current</if>" >平台自退(常规)</a>
	  			<a href="javascript:;" onclick="change('refundType','3');" class="<if condition="$refundType eq '3' ">current</if>" >淘宝自退</a>
	  			<a href="javascript:;" onclick="change('refundType','4');" class="<if condition="$refundType eq '4' ">current</if>" >平台自退(签证)</a>
	  			<a href="javascript:;" onclick="change('refundType','5');" class="<if condition="$refundType eq '5' ">current</if>" >直销退款</a>
			</td>
		</tr>
		<tr>
			<td>审核状态：</td>
			<td>
      			<a href="javascript:;" onclick="change('passStatus','');" class="<if condition="$passStatus eq '' ">current</if>" >全部</a>
      			<a href="javascript:;" onclick="change('passStatus','0');" class="<if condition="$passStatus eq '0' ">current</if>" >审核中</a>
	  			<a href="javascript:;" onclick="change('passStatus','1');" class="<if condition="$passStatus eq '1' ">current</if>" >审核成功</a>
      			<a href="javascript:;" onclick="change('passStatus','-1');" class="<if condition="$passStatus eq '-1' ">current</if>" >审核失败</a>
			</td>
		</tr>
		<tr>
			<td>付款状态：</td>
			<td>
      			<a href="javascript:;" onclick="change('payStatus','');" class="<if condition="$payStatus eq '' ">current</if>" >全部</a>
      			<a href="javascript:;" onclick="change('payStatus','0');" class="<if condition="$payStatus eq '0' ">current</if>" >未退款</a>
	  			<a href="javascript:;" onclick="change('payStatus','1');" class="<if condition="$payStatus eq '1' ">current</if>" >已退款</a>
			</td>
		</tr>
    <tr>
      <td>关键查询：</td>
      <td>
        <form action="{:U(MODULE_NAME.'/Message/orderRefundReceive')}" method="get">
        <input type="text" name="keyword" class="input-m" placeholder="请输入订单号" value="{$keyword}">
        <button type="submit" class="button-green">查询</button>
        </form>
      </td>
    </tr>
	</tbody>
</table>
<table class="list">
		<thead>
			<tr>
		        <th width="20px"><img src="/Public/image/mail1.jpg"></th>
		        <th width="120px">订单号</th>
		        <th width="60px">出发地</th>
		        <th width="60px">目的地</th>
		        <th width="60px">渠道</th>
		        <th width="100px">退款类型</th>
		        <th width="60px">退款金额</th>
		        <th>退款备注</th>
		        <th width="60px">审核状态</th>
		        <th width="60px">退款状态</th>
		        <th width="60px">申请人</th>
		        <th width="150px">时间</th>
      		</tr>
		</thead>
  		<tbody id="name">
		<foreach name="list" item="vo">
			<tr>
		         <td><if condition="$vo.isNew eq true"><img src="/Public/image/mail2.jpg"><else /><img src="/Public/image/mail1.jpg"></if></td>
		         <td><a href="{:U(MODULE_NAME.'/Message/orderRefundDeal',array('id'=>$vo['id']))}">{$vo.withOrderID}</a></td>
		         <td>{$vo.departureCity}</td>
		         <td>{$vo.destinationCity}</td>
		         <td>{$vo.channel}</td>
		         <td>{$vo.refundType}</td>
		         <td>{$vo.price}</td>
		         <td>{$vo.remark}</td>
		         <td>{$vo.passStatus}</td>
		         <td>{$vo.payStatus}</td>
		         <td>{$vo.sendName}</td>
		         <td>{$vo.sendTime}</td>
	      	</tr>
    	</foreach>
  </tbody>
</table>
<div class="page" style="clear: both;">{$page}</div>
<input type="hidden" id="refundType" value="{$refundType}">
<input type="hidden" id="passStatus" value="{$passStatus}">
<input type="hidden" id="payStatus" value="{$payStatus}">
<input type="hidden" id="dealStatus" value="{$dealStatus}">

<script type="text/javascript">
function change($id,$name)
{
    $("#"+$id).val($name);
    var url =  '?';
    url += 'refundType='+$("#refundType").val();
    url += '&passStatus='+$("#passStatus").val();
    url += '&payStatus='+$("#payStatus").val();
    url += '&dealStatus='+$("#dealStatus").val();
    window.location.href = '{:U(MODULE_NAME.'/Message/orderRefundReceive')}'+url;
};
</script>